<?php
/**
 * Created by PhpStorm.
 * User: Mac
 * Date: 2019-01-21
 * Time: 21:51
 */
namespace app\Common\lib\task;
use app\Common\lib\redis\Predis;
use app\Common\lib\Redis;
class Task
{
    public static function sendSms($data){
            try{
                $response='send sms';
            }catch (\Exception $e){
                $e->getMessage();
            }

            if($response->code=='ok'){
                Predis::getInstance()->set(Redis::smsKey(),$data['code'],config('redis.out_time'));
            }
    }

}